package com.tbit.main.service.impl;

import com.tbit.main.dao.core.AccountUserConfigDao;
import com.tbit.main.pojo.AccountUserConfig;
import com.tbit.main.service.AccountUserConfigService;
import com.tbit.main.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LMY
 * @create 2021-08-23 11:51
 * 运维人员配置
 */
@Service("accountUserConfigService")
public class AccountUserConfigServiceImpl implements AccountUserConfigService {

    @Autowired
    private AccountUserConfigDao accountUserConfigDao;

    @Override
    public void add(AccountUserConfig accountUserConfig) {
        accountUserConfigDao.add(accountUserConfig);
    }

    @Override
    public AccountUserConfig getAccountUserId(Integer accountUserId) {
        return accountUserConfigDao.getAccountUserId(accountUserId);
    }

    @Override
    public void update(AccountUserConfig accountUserConfig) {
        accountUserConfigDao.update(accountUserConfig);
    }

    @Override
    public List<AccountUserConfig> getUserIds(List<Integer> accountUserIds) {
        return accountUserConfigDao.getUserIds(StringUtil.getListString(accountUserIds));
    }

    @Override
    public List<AccountUserConfig> getAll() {
        return accountUserConfigDao.getAll();
    }
}
